package com.ruoyi.vplat.controller;

import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.vplat.domain.VplatDevice;
import com.ruoyi.vplat.service.IVplatDeviceService;
import com.ruoyi.vplat.service.IVplatVideoService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 设备Controller
 * 
 * @author ruoyi
 * @date 2024-04-29
 */
@RestController
@RequestMapping("/vplat/video")
public class VplatVideoController extends BaseController
{
    @Autowired
    private IVplatVideoService vplatVideoService;
    
    /**
     * 查询设备列表
     */
    @PreAuthorize("@ss.hasPermi('vplat:video:playVideo')")
    @GetMapping("/playVideo")
    public JSONObject playVideo(@RequestParam Map<String, Object> param) throws Exception
    {
		return vplatVideoService.playVideo(param);
    }
}
